home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news1.io.org!torfree!bz786
- From: bz786@torfree.net (Sherif Asif)
- Subject: Beginer C please help me
- Message-ID: <DoLCFx.B7x.0.bloor@torfree.net>
- Organization: Toronto Free-Net
- X-Newsreader: TIN [version 1.2 PL2]
- Date: Thu, 21 Mar 1996 00:09:33 GMT
-
- This may be a stupid mistake but "please help" me.
- Thank you very much.
-
- #include <stdio.h>
- #include <math.h>
- main ()
- {
- float n;
- n=(9/5);
- printf ("n= %1.3f\n", n);
- }
- I have complied and run the programme & I got the answer n=1.000
- but Iam supposed to get answer 1.8.
- Why I got this answer?
- --
-